package com.xiaozhengkeji.blogsuper.base.mapper;

import com.xiaozhengkeji.blogsuper.base.entitys.UserEntity;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserEntityMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(UserEntity record);

    int insertSelective(UserEntity record);

    UserEntity selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(UserEntity record);

    int updateByPrimaryKey(UserEntity record);

    List<UserEntity> queryByAll(UserEntity userEntity);

    List<UserEntity> queryByEMailBox(@Param("eMailBox") String eMailBox);

    List<UserEntity> queryByEMailBoxAndPassWord(@Param("eMailBox") String eMailBox, @Param("passWord") String passWord);

    List<UserEntity> queryByUserName(@Param("userName") String userName);

    List<UserEntity> queryByUserNameAndPassWord(@Param("userName") String userName, @Param("passWord") String passWord);

    List<UserEntity> queryByEMailBoxAndPermission(@Param("eMailBox") String eMailBox, @Param("permission") String permission);
}